

<template>
  <el-card>
    <div class="card-container-inner">
      <div class="card-header">
          <svg-icon :icon-class="iconClass" class-name="card-info-icon"/>
          <span class="card-info-title">
           {{title}}
          </span>
      </div>
      <div class="card-info-message">
        <slot/>
      </div>
    </div>
  </el-card>
</template>
<script setup>

import SvgIcon from '@/components/SvgIcon/index.vue'
defineProps({
  iconClass:{
      type:String,
      required:true
  },
  title:{
      type:String
  }
})
</script>
<style scoped lang="scss">
.card-container-inner{

}
.el-card {
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 16px 4px rgba(0, 0, 0, .04);
  padding: 24px;
  border-color: transparent !important;
}
:deep(.el-card__body){
  padding: 0 !important;
}
.card-info-icon{
  width: 3em;
  height: 3em;
}
.card-header{
  display: flex;
  align-items: center;

  .card-info-title{
    margin-left: 10px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, .88);
  }
}
.card-info-message{
  margin-top: 1em;
}
</style>